package com.ljh.account.mapper;
import com.ljh.account.dao.Announcement;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import java.util.Date;

@Mapper
public interface AnnouncementMapper {

    void insertAnnouncement(Announcement announcement);

    void updateAnnouncement(Announcement announcement);

    void deleteAnnouncement(Integer id);

    Announcement selectAnnouncementById(Integer id);

    List<Announcement> selectAllAnnouncements();

    List<Announcement> selectAnnouncementsByDateRange(Date startDate, Date endDate);
}
